/*
 * StateChecker.cpp
 *
 *  Created on: Mar 30, 2011
 *      Author: cnwilson
 */

#include "../inc/StateChecker.h"
#include "../inc/Board.h"



	StateChecker::StateChecker(Board *_board,MoveChecker *checker){
		board=_board;
		moveChecker=moveChecker;
	}
	StateChecker::~StateChecker(){

	}

	BoardCondition StateChecker::getState(Color player){
		if(isCheckmate(player))
			return CHECKMATE;
		else if(isCheck(player))
			return CHECK;
		else if (isStalemate(player))
			return STALEMATE;

		return NORMAL;
	}

	bool StateChecker::isCheck(Color player){
		//TODO
		return false;
	}

	bool StateChecker::isCheckmate(Color player){
		//TODO
		return false;
	}

	bool StateChecker::isStalemate(Color player){
		//TODO
		return false;
	}
